gdk: add missing nullable annotations
authorBilal Elmoussaoui <bil.elmoussaoui@gmail.com>
Sat, 1 Jan 2022 16:03:10 +0000 (17:03 +0100)
committerBilal Elmoussaoui <bil.elmoussaoui@gmail.com>
Sat, 1 Jan 2022 16:03:10 +0000 (17:03 +0100)
gdk/gdkcontentdeserializer.c
gdk/gdkcontentserializer.c
gdk/gdkevents.c
gdk/gdkpopup.c
gdk/x11/gdksurface-x11.c

index 081380f447bfd56d6d67fa9f116756fba6da0c67..a9a1d08a9c702a45e0422f4a3b9a91c4e1b7cfc7 100644 (file)
@@ -264,7 +264,7 @@ gdk_content_deserializer_get_priority (GdkContentDeserializer *deserializer)
  *
  * This is the `GCancellable` that was passed to [func@Gdk.content_deserialize_async].
  *
- * Returns: (transfer none): the cancellable for the current operation
+ * Returns: (transfer none) (nullable): the cancellable for the current operation
  */
 GCancellable *
 gdk_content_deserializer_get_cancellable (GdkContentDeserializer *deserializer)
index 75734e27655cd6b66aa28c979c1089f8843eb925..3d1295b33e4a6a579ec6fb02c489bbc0ba488b7e 100644 (file)
@@ -270,7 +270,7 @@ gdk_content_serializer_get_priority (GdkContentSerializer *serializer)
  *
  * This is the `GCancellable` that was passed to [func@content_serialize_async].
  *
- * Returns: (transfer none): the cancellable for the current operation
+ * Returns: (transfer none) (nullable): the cancellable for the current operation
  */
 GCancellable *
 gdk_content_serializer_get_cancellable (GdkContentSerializer *serializer)
index e577c6b9c0fc6953262050c7e627395d2d483d06..1f4a920720bdec8025a852097f12cc3d993b2534 100644 (file)
@@ -1225,7 +1225,7 @@ gdk_event_get_event_type (GdkEvent *event)
  *
  * Extracts the surface associated with an event.
  *
- * Returns: (transfer none): The `GdkSurface` associated with the event
+ * Returns: (transfer none) (nullable): The `GdkSurface` associated with the event
  */
 GdkSurface *
 gdk_event_get_surface (GdkEvent *event)
index a71e63d57e215a68e7345656233eafdac05f1495..4dd97ac7ad978e7c784ced1cb7378912c35a43c8 100644 (file)
@@ -187,7 +187,7 @@ gdk_popup_get_rect_anchor (GdkPopup *popup)
  *
  * Returns the parent surface of a popup.
  *
- * Returns: (transfer none): the parent surface
+ * Returns: (transfer none) (nullable): the parent surface
  */
 GdkSurface *
 gdk_popup_get_parent (GdkPopup *popup)
index 4e2c2e9e1134c7aa83dfc84a39e9b6228c4ea858..8567d83eb8867661b3cec75e2304fd25df42f52f 100644 (file)
@@ -3535,7 +3535,7 @@ gdk_x11_surface_unfullscreen (GdkSurface *surface)
  *
  * Returns the group this surface belongs to.
  *
- * Returns: (transfer none): The group of this surface;
+ * Returns: (transfer none) (nullable): The group of this surface;
  */
 GdkSurface *
 gdk_x11_surface_get_group (GdkSurface *surface)